/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: 马卓
 * @Date: 2020-08-27 20:35:48
 * @LastEditors: 马卓
 * @LastEditTime: 2020-08-27 21:27:10
 */
const productionPlugins = []
if (process.env.NODE_ENV === 'production') {
  //发布阶段
  productionPlugins.push('transform-remove-console')
}
module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
    [
      'import',
      {
        libraryName: 'view-design',
        libraryDirectory: 'src/components'
      }
    ],
    ...productionPlugins
  ]
}
